<?php
/**
 * Created by PhpStorm.
 * User: 38339
 * Date: 2021-05-21
 * Time: 17:33
 */

namespace app\common\validate\table;


use think\Validate;

class CommonTableConfig extends Validate
{

    protected $rule = [
        'table_name'  => 'require',
        'remark' => 'require',
        'table_namespace_id' => 'require',
    ];

    protected $message  =   [
        'table_name.require' => '请输入表名',
        'remark.require' => '请输入表对应菜单名称',
        'table_namespace_id.require' => '请选择包名配置'
    ];

    protected $scene = [
        'edit'  =>  ['table_name','remark','table_namespace_id','id'],
        'add'  => ['table_name','remark','table_namespace_id'],
    ];

}